package ru.teleology.cubefs.api.reflection;

public class Finalizer<T extends Typed> {
	private final T object;
	
	public Finalizer(T object) {
		this.object = object;
	}
	
	public T getObject() {
		return object;
	}
	
	protected void finalize() {
		object.destroy();
	}
}
